package com.hlhj.carview.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hlhj.carview.R
import com.hlhj.carview.bean.GainDetailBean

/**
 * Created by Never Fear   on 2018\12\20 0020.
Never More....
 */
class GainListAdp(private val datas:ArrayList<GainDetailBean.InfoBean.DataBean>)
    :BaseQuickAdapter<GainDetailBean.InfoBean.DataBean,BaseViewHolder>(R.layout.gainlist_item,datas) {
    override fun convert(helper: BaseViewHolder?, item: GainDetailBean.InfoBean.DataBean?) {
        helper?.setText(R.id.itemName,item?.name)
        helper?.setText(R.id.itemTime,item?.add_time)
        helper?.setText(R.id.itemPrice,"+${item?.number}")


    }
}